#ifndef COMMON_H
#define COMMON_H

#include <stdint.h>
#include <boost/thread.hpp>

#define TABLESIZE 2048
#define BUFFERSIZE (1024*1024)
#define GROUP_BY_MID_FLAG 'g'
#define GROUP_BY_END_FLAG 'G'
#define INTERNAL_PROTO_FLAG 'P'
#define CONSUME_MID_FLAG 'c'
#define CONSUME_END_FLAG 'C'
#define NETWORK_END_FLAG 'S'

enum Type {
	INT = 1, DOUBLE = 2, BOOL = 3
};

class Network;
extern Network* network;

#endif
